#ifndef MAINDEVICEFORM_H
#define MAINDEVICEFORM_H

#include <QWidget>

#define MainDeviceFormIns MainDeviceForm::Instance()

namespace Ui {
class MainDeviceForm;
}

class MainDeviceForm : public QWidget
{
    Q_OBJECT

public:
    explicit MainDeviceForm(QWidget *parent = nullptr);
    ~MainDeviceForm();

    static MainDeviceForm *Instance();

private:
    void initGraphicsView();

private slots:
    void on_flushUIBMS204(double battVolt, double battCurr, double soc);

    void on_xslider_fs_valueChanged(int value);

    void on_switchButton_relay_checkedChanged(bool checked);

private:
    Ui::MainDeviceForm *ui;

Q_SIGNALS:
    void sendData(int ID,const QByteArray &data);
};

#endif // MAINDEVICEFORM_H
